<?

if(!defined(SCOT_EVALUATION_SERIALIZER)) {
	define('SCOT_EVALUATION_SERIALIZER', true);

	class EvaluationSerializer {
		var $scotModel = null;
		function EvaluationSerializer($model) {
			if(SCOT_DEBUG) echo('Call : EvaluationSerializer->CSVSerializer()<br>');
			
			$this->scotModel = $model;
		}
		
		function serialize($time) {
			if(SCOT_DEBUG) echo('Call : EvaluationSerializer->serialize()<br>');
			
			$userList = $this->scotModel->getUserList();
			
			$row = ($userList[0]->getId()).',';
			$row .= $time.',';
			$row .= $this->scotModel->getTotalTagFrequency().',';
			$row .= $this->scotModel->getTotalCooccurrenceFrequency()."\n";
			
			return $row;
		}
	}
}
?>